﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace ALE_Server.EC
{
    [Serializable]
    [DataContract]
    public class ECReportGroupList
    {
        IList<ECReportGroupListMember> m_Members = new List<ECReportGroupListMember>();

        [DataMember]
        public IList<ECReportGroupListMember> Members
        {
            get
            {
                return m_Members;
            }
            set
            {
                m_Members = value;
            }
        }

        public void AddMember(ECReportGroupListMember member)
        {
            m_Members.Add(member);
        }

        public void RemoveMember(ECReportGroupListMember member)
        {
            m_Members.Remove(member);
        }

        public override string ToString()
        {
            return XmlSerializeHelper.Serialize(this);
        }
    }
}
